package com.zhn.evsi.controller.Evsi;

import com.zhn.evsi.common.Result;
import com.zhn.evsi.service.IEvsiContractsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiSort;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "合同")
@ApiSort(value = 8)
@RestController
@RequestMapping("/Evsi/Contracts")
public class EvsiContractsController {

    @Autowired
    private IEvsiContractsService contractsService;

    @ApiOperation("查询我的合同")
    @GetMapping("/myContracts")
    public Result myContracts() {
        return Result.success(contractsService.myContracts());
    }
}
